<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Test\test;

class GroupServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        // View::composer('*', function($viewaa) {
        //     $viewaa->with('test',['list'=>'homelist']);
        // });
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //
        $this->app->singleton('test', function($controller) {
            return new Test;
        });
    }

}
